package com.baibei.model;

import android.os.Parcel;
import android.os.Parcelable;

import java.io.Serializable;

/**
 * Created by tang on 2018/7/20.
 */

public class MsgContentInfo implements Parcelable ,Serializable {
    //时间点
    private String dtime;
    //标题
    private String title;
    //具体消息内容
    private String message;
    //返回消息图片标识
    private String state;

    protected MsgContentInfo(Parcel in) {
        dtime = in.readString();
        title = in.readString();
        message = in.readString();
        state = in.readString();
    }

    public static final Creator<MsgContentInfo> CREATOR = new Creator<MsgContentInfo>() {
        @Override
        public MsgContentInfo createFromParcel(Parcel in) {
            return new MsgContentInfo(in);
        }

        @Override
        public MsgContentInfo[] newArray(int size) {
            return new MsgContentInfo[size];
        }
    };

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel parcel, int i) {
        parcel.writeString(dtime);
        parcel.writeString(title);
        parcel.writeString(message);
        parcel.writeString(state);
    }

    public String getDtime() {
        return dtime;
    }

    public void setDtime(String dtime) {
        this.dtime = dtime;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    @Override
    public String toString() {
        return "MsgContentInfo{" +
                "dtime='" + dtime + '\'' +
                ", title='" + title + '\'' +
                ", message='" + message + '\'' +
                ", state='" + state + '\'' +
                '}';
    }
}
